-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support importing osmChange and geojson files #10407
base: develop
Are you sure you want to change the base?
Conversation
Super awesome timing, I was just looking for something like this. I've got a few tools in progress that help find/fix tagging problems. The focus of those tools doesn't include checking tags of nearby objects, having a list of edited objects, uploading changesets, etc, and I don't want to reinvent parts of iD. So this feature will be perfect, thanks for implementing it! I tried out your demo with an example (sample edit, don't actually upload it):
but I just got "Failed to import file" at the bottom with no further details in the console or elsewhere. I'd suggest:
|
675e39f
to
09b8a16
Compare
thanks for the feedback @dabreegster :) I've added an error modal, and the errors are now logged to the console In your case, it's because of a conflict, the xml has |
I think adding this is a great enhancement for advanced use cases! The only reason I can see not to add it is if it would create too much additional maintenance burden or technical debt. However, we haven't really discussed this aspect for other features… :-). On the UI side:
I am thinking more in the direction of the custom image overlay which has two feautres…
Actually, isn't that more or less the same as …? (Sorry, German UI) I really like this use case, but I am not sure if we want to open up this area of features for iD. In my mind, all those import use cases are the domain of Rapid which has more feature in this area. There is facebook/Rapid#585 which touches on some use cases that could use this feature. — There is more to talk about here which we will not resolve in this PR IMO. But I think adding a focus on just re-uploading saved OSM changes session would make this PR easier to handle. |
@dabreegster This is off topic here, but FYI:
The fix-and-improve-tagging workflow that I am working on in for https://radverkehrsatlas.de/ is to have some place (our backend) create the issues as a geojson endpoint. Then setup a MapRoulette Challenge which gives room for explanation and guidance. And then – for some types of challenges – add "fix tag" attributes that allow a one click modification in MapRoulette. This workflow has become more relevant IMO since Rapid now has a MapRoulette integration. And they might add the "fix tag" challenges as well facebook/Rapid#1340 which would make updating OSM data super easy right inside the editor. — The advantage of adding a raw file like here is IMO, that the process is a lot more guided and allows for more mapper control. Which is always important to prevent accidental miss edits and negative community feedback. |
I agree, I don't think this part should be added to iD itself. It would be too easy for beginners to make an enourmous mess. facebook/Rapid#585 would be the best solution, but the RapiD team were quite hestitant when I asked about it 4 years ago (hence why I built a different fork of RapiD for tag fixes, but now we're getting off topic 😆)
Your suggestion is possible, althought there would be no checkbox, because you can't "turn off" the data once it's imported. So it would look something like this: A modal with more info is also a good idea. How detailed do you think the explaination should be? The only similar example is this popup, which has very little info and somewhat confusing jargon |
That issue is 2 years old, and I don't remember being "hesitant" about it at all. |
@bhousel that's great to hear, I think I asked on the OSM US slack back in 2020 and was told that there were no plans to support custom data using the new esri feature. Shall we the continue the import-related discussion in facebook/Rapid#585 ? |
I tested this today and it seems to work fine when there’s no conflict. On the UI side, I was expecting drag and drop to work, the file explorer picker workflow is slow and feels outdated now. |
Closes #7109, Closes #8036
This PR adds a new button which allows you to import an osmChange file into the editor. Preview it here.
This PR is cherrypicked from my fork of iD, so it also supports importing a geojson/osmPatch file. Presumably these features would be removed if this PR were to be accepted. But I wanted to make a PR so there's a place for discussion.
Based on my use cases, the main benefits are:
Footnotes
this is still quite buggy ↩